package ebuy.com.server.imp;

import ebuy.com.dao.Easybuy_userdao;
import ebuy.com.pojo.Easybuy_user;
import ebuy.com.server.Easybuy_userserver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class Easybuy_userserverimp implements Easybuy_userserver {
    @Autowired
    private Easybuy_userdao easybuy_userdao;
    @Override
    public Easybuy_user Loginrequest(String userName, String password) {
        return easybuy_userdao.Loginrequest(userName, password);
    }

    @Override
    public Integer Querybyusername(String userName) {
        return easybuy_userdao.Querybyusername(userName);
    }

    @Override
    public Easybuy_user lookfortheaddress(String loginName,Integer isDefault) {
        return easybuy_userdao.lookfortheaddress(loginName,isDefault);
    }

    @Override
    public int increaseuser(Easybuy_user easybuy_user) {
        return easybuy_userdao.increaseuser(easybuy_user);
    }

    @Override
    public Easybuy_user Judgewhethertheusersnamesrepeated(String loginName) {
        return easybuy_userdao.Judgewhethertheusersnamesrepeated(loginName);
    }
}
